package cn.xyy.system.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import cn.xyy.common.domain.system.auth.Department;
import cn.xyy.jdbc.BaseDao;

/**
 * 部门数据持久层
 * 
 * @author xyy
 *
 */
@Repository
public class DepartmentDao extends BaseDao {

	public List<Department> selectAllList() {
		String sql = "SELECT dept_id as id,name,  parent_id as parentId,levels,for_service as forService,sorts,status,create_time as createTime,creator from t_sys_dept r  order by sorts asc ";
		return super.select(sql, Department.class);
	}
}
